const {src,dest,watch,series, on}=require("gulp");
const concat = require("gulp-concat");
const uglify = require("gulp-uglify");
const sass = require("gulp-sass")(require('sass'));


function sassFn(){
    return src("./src/sass/goodsDetail.scss")
    .pipe(sass().on("error",sass.logError))
    .pipe(dest("./www/css"));
}
function watchSassFn(cb){
    watch(["./src/sass/goodsDetail.scss"],sassFn);
    cb();
}

exports.watchSass = watchSassFn;